package cn.mrlong.tools.bean

import java.util.*

/**
 * @author LeeWyatt
 */
class ImageRecord {
    var imageTitle: String? = null
    var imageDesc: String? = null
    var imagePath: String? = null

    constructor()

    constructor(imageTitle: String?, imageDesc: String?, imagePath: String?) {
        this.imageTitle = imageTitle
        this.imageDesc = imageDesc
        this.imagePath = imagePath
    }

    override fun equals(o: Any?): Boolean {
        if (this === o) {
            return true
        }
        if (o == null || javaClass != o.javaClass) {
            return false
        }
        val that = o as ImageRecord
        return imageTitle == that.imageTitle && imageDesc == that.imageDesc && imagePath == that.imagePath
    }

    override fun hashCode(): Int {
        return Objects.hash(imageTitle, imageDesc, imagePath)
    }

    override fun toString(): String {
        return "ImageRecord{" +
                "title='" + imageTitle + '\'' +
                ", imageDesc='" + imageDesc + '\'' +
                ", imagePath='" + imagePath + '\'' +
                '}'
    }
}
